package com.example.lvsuo.service.impl;

import com.example.lvsuo.entity.HrEmp;
import com.example.lvsuo.service.IHrWorkhistoryService;
import com.example.lvsuo.entity.HrWorkhistory;
import com.example.lvsuo.mapper.HrWorkhistoryMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 历史工作信息 服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class HrWorkhistoryServiceImpl extends ServiceImpl<HrWorkhistoryMapper, HrWorkhistory> implements IHrWorkhistoryService {

    @Autowired
    HrWorkhistoryMapper hrWorkhistoryMapper;

    /**
     * 查询律师员工历史工作经历
     * @param
     * @return
     */
    @Override
    public List<HrWorkhistory> getHrWorkhistory(String id) {
        return hrWorkhistoryMapper.getHrWorkhistory(id);
    }

    /**
     * 添加
     * @param hrWorkhistory
     */
    @Override
    public void insertHrWorkhistory(HrWorkhistory hrWorkhistory) {
        hrWorkhistoryMapper.insertHrWorkhistory(hrWorkhistory);
    }
}
